package touro.mancala.client;

import java.awt.Color;
import java.util.ArrayList;

public class Pit extends Store {

	int place;
	public Pit(Player p, int ind) {
		super(p);
		place = ind;
	}

	public Pit(int numStones, Player p, int ind, Color color) {
		super(numStones, p, color);
		place = ind;
	}
	
	public ArrayList<Stone> removeStones () {
		ArrayList<Stone> stones = new ArrayList<Stone>();
		for (Stone s : this.getStones()) {
			stones.add(s);
		}
		this.getStones().clear();
		return stones;
	}
	
	public int getPlace () {
		return place;
	}
	
}
